package com.hzeport.bgs22emduty.inbound.lsapi;

import com.hzeport.bgs22emduty.dto.ScreenDutyNoticeListDTO;
import com.hzeport.bgs22emduty.dto.ScreenDutyNoticeListSaveDTO;
import com.hzeport.bgs22emduty.entity.ScreenDutyNoticeList;
import com.hzeport.bgs22emduty.service.ScreenDutyNoticeListService;
import com.hzeport.bgs22emduty.vo.ls.ScreenDutyMessageSaveVO;
import com.hzeport.bgs22emduty.vo.ls.ScreenDutyNoticeListLSAnnoSaveVO;
import com.hzeport.bgs22emduty.vo.ls.ScreenDutyNoticeSaveVO;
import com.hzeport.bgs22emduty.common.base.BaseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

//import org.springframework.security.access.prepost.PreAuthorize;

/**
 * ${comments}
 *
 * @author code generator
 * @date 2023-02-14 09:39:44
 */
@RestController
@AllArgsConstructor
@RequestMapping("/screendutynoticelistls")
@Api(value = "screendutynoticelistls", tags = "值班提醒管理ls")
@Slf4j
@CrossOrigin
public class ScreenDutyNoticeListLSController {

    private final ScreenDutyNoticeListService screenDutyNoticeListService;

    @ApiOperation(value = "值班提醒保存")
    @RequestMapping(value = "savelsnote",method = RequestMethod.POST)
    public BaseResult savelsnote( @RequestBody ScreenDutyNoticeSaveVO screenNoticeSaveVO , HttpServletRequest request ) {
        return screenDutyNoticeListService.savelsnote(screenNoticeSaveVO,request);
    }


    @ApiOperation(value = "异常提醒保存")
    @RequestMapping(value = "savelsabno",method = RequestMethod.POST)
    public BaseResult savelsabno(@RequestBody ScreenDutyNoticeListLSAnnoSaveVO screenDutyNoticeListLSAnnoSaveVO , HttpServletRequest request ) {
        return screenDutyNoticeListService.savelsabno(screenDutyNoticeListLSAnnoSaveVO,request);
    }


}
